package jmine.tec.datadigester.positional;

import java.io.BufferedReader;

import jmine.tec.datadigester.positional.AbstractPositionalDriver;
import br.com.maps.datadigester.shared.bean.PositionalTestBean;

/**
 * @author israel.crisanto
 */
public class PositionalExampleDriver extends AbstractPositionalDriver<PositionalTestBean> {

    @Override
    protected PositionalTestBean getBean(BufferedReader reader) throws Exception {
        PositionalTestBean bean = new PositionalTestBean();

        this.populateEntityFromLine(bean, reader.readLine());

        return bean;
    }

    /**
     * {@inheritDoc}
     */
    @Override
    protected String getFileCharset() {
        return "UTF-8";
    }
}
